package com.zyx.xunyilu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: Roles
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2019/11/11 13:35
 */
@Getter
@AllArgsConstructor
public enum Roles {

    // NORMAL   普通成员
    NORMAL("NORMAL", false),
    // ADMIN    管理员
    ADMIN("ADMIN", true);

    @JsonValue
    private String  name;

    @EnumValue
    private boolean flag;

}
